#22 new
Dave Howarth

Discount Module code error

Reported by Dave Howarth | July 12th, 2009 @ 10:11 AM

When trying to apply a valid discount code the always returns that the user has entered an invalid discount code.

This is due to a query error in modules/discount/discount.inc.php on line 99

    $rs = $db->Execute(sqlSelect($db,"discount","*","( date_start IS NULL OR date_start=0 OR date_start<".time().") AND date_expire<=".time()." AND name=::$discount_code::"));

This query should read..

    $rs = $db->Execute(sqlSelect($db,"discount","*","( date_start IS NULL OR date_start=0 OR date_start<".time().") AND date_expire>=".time()." AND name=::$discount_code::"));

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Open Source Billing, Invoicing, and Provisioning

People watching this ticket

Pages